import request from '@/utils/reqest.js'
// h获取用户频道列表数据的API
export const getUserChannelsAPI = function () {
  return request.get('/v1_0/user/channels')
}

// 根据频道id和时间戳请求文章列表数据的api
export const getArtListAPI = function (id, time) {
  return request.get('/v1_0/articles', {
    params: {
      // params 指向的才是get的参数对象
      channel_id: id,
      timestamp: time
    }
  })
}
